<?php

use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Permission;

class PermissionTable extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {

        $permissions = [
            'role-list',
            'role-create',
            'role-edit',
            'role-delete',

            'tutorial-list',
            'tutorial-create',
            'tutorial-edit',
            'tutorial-delete',

            'endereco-list',
            'endereco-create',
            'endereco-edit',
            'endereco-delete',

            'download-list',
            'download-create',
            'download-edit',
            'download-delete',

            'termo-list',
            'termo-create',
            'termo-edit',
            'termo-delete',

            'contato-list',
            'contato-delete',

<<<<<<< HEAD
            'associado-list',
            'associado-create',
            'associado-edit',
            'associado-delete',
=======
            'blog-list',
            'blog-create',
            'blog-edit',
            'blog-delete',
>>>>>>> 484d126... Adicionado Blog ao Painel
        ];


        foreach ($permissions as $permission) {
            Permission::create(['name' => $permission]);
        }
    }
}
